knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(durhamevp)
This vignette documents how the data from crawling the BNA and WNO archive is stored on the database, how this data can be retrived and how it can be analysed.
The database stores three information from the crawling process in three tables:
The portal_archivesearch table can be retrived with the get_archivesearches()
command.
archivesearches<-get_archivesearches() knitr::kable(tail(archivesearches, 3))
The portal_archivesearchresults table can be retrived with the get_archivesearchresults()
command. To retrieve the results relating to a particular search. For example to retrieve the results returned by the most recent document search (archive_search_id = r tail(archivesearches$id,1)
):
lastid<-tail(archivesearches$id,1) archivesearchresults<-get_archivesearchresults(archive_search_id=lastid) names(archivesearchresults) dim(archivesearchresults) knitr::kable(head(archivesearchresults[,c("id", "archive_search_id", "description", "publication_title")], 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.